package com.amazon.ags.jni.profiles;

import android.util.Log;
import com.amazon.ags.api.AGResponseCallback;
import com.amazon.ags.api.ErrorCode;
import com.amazon.ags.api.profiles.RequestPlayerProfileResponse;
import com.amazon.ags.jni.JniResponseHandler;

public class RequestLocalPlayerProfileJniResponseHandler extends JniResponseHandler
  implements AGResponseCallback<RequestPlayerProfileResponse>
{
  private static final String TAG = RequestLocalPlayerProfileJniResponseHandler.class.getSimpleName();

  public RequestLocalPlayerProfileJniResponseHandler(int paramInt, long paramLong)
  {
    super(paramInt, paramLong);
  }

  public void onComplete(RequestPlayerProfileResponse paramRequestPlayerProfileResponse)
  {
    if (paramRequestPlayerProfileResponse.isError())
    {
      Log.d(TAG, "jniRequestPlayerProfile response - onFailure");
      ProfilesJni.getLocalPlayerProfileResponseFailure(this.m_CallbackPointer, paramRequestPlayerProfileResponse.getError().ordinal(), this.m_DeveloperTag);
      return;
    }
    Log.d(TAG, "jniRequestPlayerProfile response - onSuccess");
    ProfilesJni.getLocalPlayerProfileResponseSuccess(paramRequestPlayerProfileResponse, this.m_CallbackPointer, this.m_DeveloperTag);
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.amazon.ags.jni.profiles.RequestLocalPlayerProfileJniResponseHandler
 * JD-Core Version:    0.6.2
 */